package samples.spring;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;
import java.util.Properties;

/**
 * Hello world!
 */
public class SpringApp {
    public static final Logger LOGGER = LoggerFactory.getLogger(SpringApp.class);

    public static void main(String[] args) {

        Map<String, String> sysEnv = System.getenv();
        Properties properties = System.getProperties();

        LOGGER.info("sysEnv: {}", sysEnv);
        LOGGER.info("properties: {}", properties);
//
//        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("appContext.xml");
//
//        int beanDefinitionCount = applicationContext.getBeanDefinitionCount();
//        System.out.println("beanDefinitionCount:"+beanDefinitionCount);
//        String[] beanDefinitionNames = applicationContext.getBeanDefinitionNames();
//        if(beanDefinitionNames!=null){
//            for (String beanDefinitionName : beanDefinitionNames) {
//                System.out.println("beanDefinitionName:" + beanDefinitionName);
//            }
//        }
//
//        User user = applicationContext.getBean(User.class);
//
////        LOGGER.info(user.toString());
//        System.out.println(user.toString());

    }
}
